package com.sat.user.service.impl;

import com.github.pagehelper.PageInfo;
import com.sat.user.dao.UserMapper;
import com.sat.user.pojo.User;
import com.sat.user.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserSerivceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public User findById(String username) {

        User user = userMapper.selectByPrimaryKey(username);
        return user;
    }
}
